package com.feather.common.converter.simple.fieldassignment;

import java.lang.reflect.Field;

import com.feather.common.converter.FieldAssignment;
import com.feather.common.util.ClassUtil;

/**
 * @author flogyin
 */
public class String_StringBuilder implements FieldAssignment {
	@Override
	public Object assign(Object value, Object obj, Field field) {
		StringBuilder builer = null;
		String str = (String) value;
		if (str != null) {
			builer = new StringBuilder();
			builer.append(str);
		}

		ClassUtil.set(obj, field, builer);
		return null;
	}
}
